import request from '@/utils/request'

const goalApi =() => {
  return {
    getGoals: (data) => {
      return request.post('/goals/getGoals', data)
    },
    getGoalsNow: (data) => {
      return request.post('/goals/getGoalsNow', data)
    },
    addGoals: (data) => {
      return request.post('/goals/add', data)
    },
    deleteGoals(id) {
      return request.get('/goals/deleteGoals', { params: { id }})
    }
  }
}
export default goalApi()
